<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class MonthAge extends Model
{

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'title', 'start_date', 'end_date',
    ];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [];

    public function course_times(){
        return $this->hasMany(CourseTime::class,'month_age_id');
    }
}
